package com.spark.incoicings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spark.invoicings.entity.OutboundOrder;
import com.spark.invoicings.utils.Result;

import java.util.List;
import java.util.Map;

public interface OutboundOrderService extends IService<OutboundOrder> {

    /**
     * 根据id获取出库单
     * @param id
     * @return
     */
    OutboundOrder selectOutboundOrderById(Integer id);

    /**
     * 更新出库单
     * @param outboundOrder
     * @return
     */
    Result updateOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 保存出库单
     * @param outboundOrder
     * @return
     */
    Result addOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 查询所有出库单
     * @param map
     * @return
     */
    List<OutboundOrder> selectOutboundOrderAll(Map<String, Object> map);

}
